package test;

import selcoursesys.action.SelectionAction;
import selcoursesys.dao.SelectionDAO;
import selcoursesys.dao.impl.SelectionDAOImpl;
import selcoursesys.entity.SelectionEntity;

/**
 * Created by Lpbdz on 2017/4/9.
 */
public class testSelection {
    public static void main(String[] args){
        SelectionEntity selectionEntity=new SelectionEntity();
        SelectionAction selectionAction=new SelectionAction();
        selectionEntity.setCourseid("CS0003");
        selectionEntity.setStuid("2011001001");
        //selectionAction.showSelectionInfo(selectionEntity);


        //SelectionDAO selectionDAO=new SelectionDAOImpl();
        //selectionDAO.insertSelection(selectionEntity);
        //selectionDAO.delSelection(selectionEntity);
        //selectionDAO.querySelection(selectionEntity);
        //selectionDAO.delSelection(selectionEntity);
        //if(selectionDAO.checkSelection(selectionEntity)){
        //   selectionDAO.querySelection(selectionEntity);
       // }
        //selectionDAO.insertSelection(selectionEntity);
        //SelectionService selectionService=new SelectionServiceImpl();
        //selectionService.querySelection(selectionEntity);
        //selectionAction.showSelectionInfo();
    }
}